package cn.tedu.egweibo3.mapper;

import cn.tedu.egweibo3.pojo.entity.Weibo;
import cn.tedu.egweibo3.pojo.vo.WeiboDetailVO;
import cn.tedu.egweibo3.pojo.vo.WeiboVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface WeiboMapper {

    int insertWeibo(Weibo weibo);

    List<WeiboVO> selectIndex();

    WeiboDetailVO selectWeiboDetail(@Param("id") Long id, @Param("username")String username);
}
